<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui/css/H-ui.min.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/css/H-ui.admin.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/lib/Hui-iconfont/1.0.8/iconfont.css" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/skin/default/skin.css" id="skin" />
<link rel="stylesheet" type="text/css" href="__ADMIN__/static/h-ui.admin/css/style.css" />
<table class="table table-border table-bordered table-bg mt-20">
    <thead>
    <tr>
        <th colspan="2" scope="col">
            {switch name="data.type" }
            {case value="1"}堂食订单详情{/case}
            {case value="2"}外卖订单详情{/case}
            {default /}
            自取订单详情
            {/switch}
        </th>
    </tr>
    </thead>
    <tbody>
    <tr>
        <td width="30%">订单ID号</td>
        <td><span id="lbServerName">{$data.id}</span></td>
    </tr>
    <tr>
        <td>用户名</td>
        <td>{$data->user->nickname ?? '未知'}</td>
    </tr>
    <tr>
        <th>类型</th>
        <td>
            {switch name="data.type" }
            {case value="1"}堂食{/case}
            {case value="2"}外卖{/case}
            {default /}
            自取
            {/switch}
        </td>
    </tr>
    <tr>
        <td>评论</td>
        <td>
            {eq name="data.is_comment" value="1"}
            未评价
            {else/}
            已评价
            {/eq}
        </td>
    </tr>
    <tr>
        <td>订单状态</td>
        <td>
            {switch name="$data.status" }
            {case value="1"}
            <span class="label label-secondary radius">待付款</span>
            {/case}
            {case value="2"}
            <span class="label label-primary radius">已付款</span>
            {/case}
            {case value="3"}
            <span class="label label-warning radius">配送中</span>
            {/case}
            {case value="4"}
            <span class="label label-success radius">订单完成</span>
            {/case}
            {case value="5"}
            <span class="label label-success radius">退款完成</span>
            {/case}
            {case value="6"}
            <span class="label label-secondary radius">退款中</span>
            {/case}
            {case value="7"}
            <span class="label label-success radius">订单关闭</span>
            {/case}
            {case value="8"}
            <span class="label label-danger radius">待接单</span>
            {/case}
            {case value="9"}
            <span class="label label-danger radius">申请退款</span>
            {/case}
            {default /}
            <span class="label label-danger radius">待领取</span>
            {/switch}
        </td>
    </tr>
    <tr>
        <td>优惠券</td>
        <td>{$data->coupon->name ?? '未使用'}</td>
    </tr>
    <tr>
        <th>原始价格</th>
        <td>{$data.price}</td>
    </tr>
    <tr>
        <td>优惠后价格</td>
        <td>{$data.true_price}</td>
    </tr>
    <tr>
        <th>地址</th>
        <td>{$data.address.address}</td>
    </tr>
    <tr>
        <th>手机号</th>
        <td>{$data.phone}</td>
    </tr>
    <tr>
        <th>桌号</th>
        <td>{$data.table}</td>
    </tr>
    <tr>
        <td>创建时间</td>
        <td>{$data.create_time}</td>
    </tr>
    <tr>
        <td>最近更新时间</td>
        <td>{$data.update_time}</td>
    </tr>
    <tr>
        <th>备注</th>
        <td>{$data.note}</td>
    </tr>

    </tbody>
</table>